package com.dds.system.service.union.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dds.system.mapper.union.UnionShopBusInfoMapper;
import com.dds.system.domain.union.UnionShopBusInfo;
import com.dds.system.service.union.IUnionShopBusInfoService;

/**
 * 联盟商家经营信息Service业务层处理
 * 
 * @author gaolianjie
 * @date 2021-04-14
 */
@Service
public class UnionShopBusInfoServiceImpl implements IUnionShopBusInfoService 
{
    @Autowired
    private UnionShopBusInfoMapper unionShopBusInfoMapper;

    /**
     * 查询联盟商家经营信息
     * 
     * @param shopId 联盟商家经营信息ID
     * @return 联盟商家经营信息
     */
    @Override
    public UnionShopBusInfo selectUnionShopBusInfoById(String shopId)
    {
        return unionShopBusInfoMapper.selectUnionShopBusInfoById(shopId);
    }

    /**
     * 查询联盟商家经营信息列表
     * 
     * @param unionShopBusInfo 联盟商家经营信息
     * @return 联盟商家经营信息
     */
    @Override
    public List<UnionShopBusInfo> selectUnionShopBusInfoList(UnionShopBusInfo unionShopBusInfo)
    {
        return unionShopBusInfoMapper.selectUnionShopBusInfoList(unionShopBusInfo);
    }

    /**
     * 新增联盟商家经营信息
     * 
     * @param unionShopBusInfo 联盟商家经营信息
     * @return 结果
     */
    @Override
    public int insertUnionShopBusInfo(UnionShopBusInfo unionShopBusInfo)
    {
        return unionShopBusInfoMapper.insertUnionShopBusInfo(unionShopBusInfo);
    }

    /**
     * 修改联盟商家经营信息
     * 
     * @param unionShopBusInfo 联盟商家经营信息
     * @return 结果
     */
    @Override
    public int updateUnionShopBusInfo(UnionShopBusInfo unionShopBusInfo)
    {
        return unionShopBusInfoMapper.updateUnionShopBusInfo(unionShopBusInfo);
    }

    /**
     * 批量删除联盟商家经营信息
     * 
     * @param shopIds 需要删除的联盟商家经营信息ID
     * @return 结果
     */
    @Override
    public int deleteUnionShopBusInfoByIds(String[] shopIds)
    {
        return unionShopBusInfoMapper.deleteUnionShopBusInfoByIds(shopIds);
    }

    /**
     * 删除联盟商家经营信息信息
     * 
     * @param shopId 联盟商家经营信息ID
     * @return 结果
     */
    @Override
    public int deleteUnionShopBusInfoById(String shopId)
    {
        return unionShopBusInfoMapper.deleteUnionShopBusInfoById(shopId);
    }

    @Override
    public List<Map<String, Object>> selectShopsByShopName(String shopName) {
        return unionShopBusInfoMapper.selectShopsByShopName(shopName);
    }
}
